package com.longxiao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.longxiao.entity.StudentLecture;
import com.longxiao.vo.StuUserVo;

public interface StudentLectureMapper {
    int deleteByPrimaryKey(Integer id);

	int insert(StudentLecture record);

	int insertSelective(StudentLecture record);

	StudentLecture selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(StudentLecture record);

	int updateByPrimaryKey(StudentLecture record);

    /*
    *根据用户ID查询
    */
    StudentLecture selectByUserId(String stuId);
    
    List<StuUserVo> selectStuUserVo(@Param("cond")StuUserVo userVo,@Param("offset")int offset, @Param("rows")int rows);
    
    int countStuUserVo(@Param("cond")StuUserVo userVo);
}